﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using XhPaper;

namespace test
{
    public partial class Form1 : Form
    {
        public MyCadDll.MyCadDllClass myCad;
        public Form1()
        {
            InitializeComponent();
            myCad = new MyCadDll.MyCadDllClass();
           
        }

        private void button1_Click(object sender, EventArgs e)
        {
            myCad.StartCad();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            MyTuZhi tuzhi = new MyTuZhi(0, 0, null);
            MyJdq jdq = new MyJdq(10, 130, tuzhi);
            MyJdq jdq1 = new MyJdq(60, 130,tuzhi);
            jdq.MyDraw(myCad);
            jdq1.MyDraw(myCad);
            MyJkb jkb = new MyJkb(110, 130, tuzhi);
            jkb.MyDraw(myCad);
        }

        private void button3_Click(object sender, EventArgs e)
        {
            myCad.GetSelectSet();
        }
    }
}
